script.js ➔ sum   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
function sum(){
2
    const a = 1;
3
    const b = 2;
4
    return a + b;
5
}
6
7
const person = {
0 ignored issues
show
Unused Code introduced by
The constant person seems to be never used. Consider removing it.
Loading history...
8
    name: 'homayoon',
9
    family: 'ghadiri',
10
    age: 33
11
}